package com.blog.mapper;

import com.blog.entity.Category;
import com.blog.entity.Tag;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
* @author 电脑小白
* @description 针对表【tag】的数据库操作Mapper
* @createDate 2025-07-03 19:35:39
* @Entity com.blog.entity.Tag
*/
public interface TagMapper {

    @Select("select id, tag_name as tagName from tag")
    List<Tag> get_tag();

    @Select("select * from tag where id=#{tagId}")
    Tag gettagbyid(Integer tagId);

    @Select("select count(*) from tag")
    Integer get_category_counts();
}




